package com.example.spring;

import com.example.spring.jdbc.MyDateSource;
import com.example.spring.service.CustomerService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * ClassName:testProperties
 * Package:com.example.spring
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/8-19:23
 * @Version:v1.0
 */
public class testProperties {
    @Test
    public void name() {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-properties.xml");
        MyDateSource cs = applicationContext.getBean("ds", MyDateSource.class);
        System.out.println(cs);
    }
}
